-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix docker image reference parsing by DockerImageIdentifierParser #1420
Conversation
@skabashnyuk @evoevodin @benoitf Please review |
ок |
throw new DockerFileException("Provided image reference is invalid"); | ||
index = workingCopyOfImage.indexOf('/'); | ||
String beforeSlash = index > -1 ? workingCopyOfImage.substring(0, index) : ""; | ||
if (beforeSlash.isEmpty() || (!beforeSlash.contains(".") && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not clear from the context what these contains(...)
invocations actually check, consider extracting this condition into the method or adding a comment explaining the context of the condition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
The solution is okay for me, please fix the comments above. |
OK |
Build # 799 - FAILED Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/799/ to view the results. |
1b79b01
to
02d3491
Compare
Parsing used to use reference definition from docker repo, but fails in some very simple cases. Rework parsing. Add comments. Add tests. Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
02d3491
to
fd9576b
Compare
Build # 807 - FAILED Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/807/ to view the results. |
Parsing used to use reference definition from docker repo, but
fails in some very simple cases.
Rework parsing. Add comments. Add tests.